lionsApp
    .controller('homeCtrl', ['$scope', '$state', '$rootScope', 'lionsHttp', function ($scope, $state, $rootScope, lionsHttp) {
        lionsHttp.checkBind({}, {}, function (data) {
            if(!data.data){
                $state.go('identity')
            }
        })
        lionsHttp.indexList({}, {}, function (data) {
            $scope.auctionList = data.data.retList
            $scope.times = data.data.time
            $scope.totalAmount = data.data.totalMoney
            $scope.totalTimes = data.data.count
        })
    }])